package com.cloud.entity;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> implements Serializable {

    public Integer code;
    public String  message;
    public T data;


    public CommonResult(Integer code, String message) {
        this(code,message,null);
    }
}
